<?php /* УТФ-8:fix */

class SPImodel__singlepage__front extends SPImodel__singlepage
{
    public function get_by_tid( $item_tid )
    {
        $query =    " SELECT * "
               .      " FROM ".SPIcfg::$store['table:singlepages']
               .     " WHERE tid = '" . addslashes( $item_tid ) ."' "
               ;

        return SPIstore::I()->query( $query )->fetch_and_close();
    }
}
